<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<script src="/js/jquery-1.10.2.min.js"></script>
	<script src="/js/jquery.validate.js"></script>
	<script src="/js/bootstrap.min.js"></script>

	<script src="/js/browse.js"></script>
	<script src="/js/cart.js"></script>
	<script src="/js/save-car.js"></script>
	<script src="/js/countries.js"></script>

    <link href="/css/bootstrap.css" rel="stylesheet">
    <link href="/css/pagination.css" rel="stylesheet">		<link href="/css/glyphicons.css" rel="stylesheet">
	<script src="/js/masonry.pkgd.min.js"></script>

	<script src="/js/ios/iphone-style-checkboxes.js" type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" href="/js/ios/style.css" type="text/css" media="screen" charset="utf-8" />

    <title><?= $this->title ?> - <?= DOMAIN_NAME ?></title>

    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
    </style>
    <link href="/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="/css/styles.css" rel="stylesheet">
	<script src="/js/register.js"></script>
    <?= $this->headLink() ?>
    <?= $this->headScript() ?>
  </head>

  <body>
	<?= $this->render("navigation.phtml"); ?>
    <div class="<?= $this->fullWidth ? 'full-width' : 'container' ?> layout-content">
    <? $msgList = Alert_View::getMessages(); ?>
	<? if (count($msgList) > 0): ?>
	<div class="alert alert-info">
	  <button type="button" class="close" data-dismiss="alert">×</button>
	  <? foreach ($msgList as $msg): ?>
	  <div <? if (Alert_View::WARNING == $msg['type']): ?> class="text-error"<?  endif; ?>>
	   <?= $msg['text'] ?>
	  </div>
	  <? endforeach; ?>
	</div>
	<? endif; ?>
	  <?php echo $this->layout()->content ?>
    </div> <!-- /container -->

    <div class="container">
	<hr>
      <footer>
        <p>&copy; <a href="/"><?= PROJECT_NAME ?></a> <?= date("Y") ?></p>
      </footer>
    </div>
  </body>
</html>
